print('for...in循环一')
for i in range(1, 10):
    for j in range(1, i+1):
        print(str(j) + ' * ' + str(i) + ' = ' + str(i*j), end='  ')
    print(' ')


print('for...in循环二')
for i in range(1, 10):
    for j in range(1, 10-i+1):
        print(str(j) + ' * ' + str(10-i) + ' = ' + str((10-i)*j), end='  ')
    print(' ')

print('for...in循环三')
for i in range(1, 10):
    print(' '*(12*(9-i)), end='')
    for j in range(1, i+1):
        string = str(j) + ' * ' + str(i) + ' = ' + str(i*j)
        print("{0:<11}".format(string), end=' ')
    print(' ')

print('for...in循环四')
for i in range(1, 10):
    print(' ' * (12 * (i-1)), end='')
    for j in range(1, 10-i+1):
        string = str(j) + ' * ' + str(10-i) + ' = ' + str((10-i)*j)
        print("{0:<11}".format(string), end=' ')
    print(' ')
